package com.turingoal.common.util.media.video.wowza;

/**
 * 服务器状态
 */
import org.springframework.web.client.RestTemplate;

public class StatusClient {
	private RestTemplate template;

	public StatusClient(RestTemplate template) {
		super();
		this.template = template;
	}

	/**
	 * 返回服务器状态
	 */
	public String status(String serverName) {
		String url = "/v2/servers/" + serverName + "/status";
		return template.getForObject(url, String.class);
	}
}
